package com.atguigu.eduService.client;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient
public interface OrderClient {
    @ApiOperation(value = "根据课程id,和用户Id查询该课程是否购买")
    @GetMapping("/orderservice/order/isBuyCourse/{courseId}/{userId}")
    public Boolean isBuyCourse(@PathVariable String courseId,
                               @PathVariable String userId);
}
